package com.softwareinlife.android.ux;

import android.app.Activity;
//import android.app.AlertDialog;
import android.os.Bundle;
//import android.content.*;
import android.view.*;
import android.view.View.OnTouchListener;
//import android.widget.ImageView;
import android.widget.Spinner;
//import android.widget.TextView;
import android.widget.ArrayAdapter;

public class Account extends Activity implements OnTouchListener {
	public Float x1;
	public Float y1;

	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.account);
		findview();
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {

		x1 = event.getX();// ����� �� x�� ���Ͷ�~

		y1 = event.getY();// ����� �� y�� ���Ͷ�~��������
		switch (event.getAction()) {
		case MotionEvent.ACTION_DOWN:

			if (x1 >= 235 && x1 <= 265 && y1 >= 390 && y1 <= 410) {

				// Intent intent2 = net Intent(this,NoVision.class);
				// startActivity(intent2);
			}
			break;
		}
		return true;
	}

	public void findview() {

		// ���ǳ� ��
		Spinner localSpinner = (Spinner) findViewById(R.id.language_setting);

		Spinner localSpinner2 = (Spinner) findViewById(R.id.time_setting);

		// ���ǳ� �ɼ�
		ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
				this, R.array.language_setting,
				R.layout.my_normal_spinner_item_style);

		ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(
				this, R.array.time_setting,
				R.layout.my_normal_spinner_item_style);

		adapter
				.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

		localSpinner.setAdapter(adapter);

		localSpinner2.setAdapter(adapter2);

	}

	@Override
	// ��ġ �̺�Ʈ �ۼ��ϸ� �ڵ����� ���� ��? �ƴ� ����;;
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}

}